﻿using System;
using SqlHelper;

namespace Model.Content
{
    public class Article : EntityBase
    {
        public Article()
        {
            PrimaryKey = "ArticleID";
            TableName = "TArticle";
            AllField = "ArticleID,CategoryID,ColumnID,IsShow,UserID,PageViewCount,Sorts,Author,Images,Title,Details,CreateTime,UpdateTime,IsDelete";
            KeyStatus = KeyStatus.Identity;
            OrderBy = " order by ArticleID asc ";
        }

        /// <summary>
        /// 文章ID
        /// </summary>
        public int? ArticleID { set; get; }

        /// <summary>
        /// 分类ID
        /// </summary>
        public int? CategoryID { set; get; }

        /// <summary>
        /// 栏目ID
        /// </summary>
        public int? ColumnID { set; get; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int? UserID { set; get; }

        /// <summary>
        /// 浏览量
        /// </summary>
        public int? PageViewCount { set; get; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int? IsDelete { set; get; }

        /// <summary>
        /// 是否显示
        /// </summary>
        public int? IsShow { set; get; }

        /// <summary>
        /// 序号
        /// </summary>
        public int? Sorts { set; get; }

        /// <summary>
        /// 作者
        /// </summary>
        public string Author { set; get; }

        /// <summary>
        /// 封面图
        /// </summary>
        public string Images { set; get; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { set; get; }

        /// <summary>
        /// 详情
        /// </summary>
        public string Details { set; get; }

        public DateTime? CreateTime { set; get; }

        public DateTime? UpdateTime { set; get; }
    }
}
